package com.app.miwawa.api.esm.entity.customer;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 预约记录表
 * <p>描述: 客户资料</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年1月26日 下午1:02:07
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_ESM_CUSTOMER_BESPOKE")
public class Bespoke extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = 3688732417758446565L;

	// 预约类型
	@Column(name = "bespoke_type", length = 5, nullable = true)
	private String bespokeType;
	
	// 预约时间
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
	@Column(name = "create_date", nullable = true)
	private Date createDate;
	
	// 诺坊时间
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
	@Column(name = "promise_date", nullable = true)
	private Date promiseDate;
		
	// 到店时间
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
	@Column(name = "comming_date", nullable = true)
	private Date commingDate;
	
	// 到访情况
	@Column(name = "comming_state", length = 100, nullable = true)
	private String commingState;
	
	// 顾问ID
	@Column(name = "user_id", length = 50, nullable = true)
	private String userid;

	// 顾问姓名
	@Column(name = "user_name", length = 50, nullable = true)
	private String username;

	// 客户ID
	@Column(name = "customer_id", length = 50, nullable = true)
	private String customerId;

	public String getBespokeType() {
		return bespokeType;
	}

	public void setBespokeType(String bespokeType) {
		this.bespokeType = bespokeType;
	}

	public String getCommingState() {
		return commingState;
	}

	public void setCommingState(String commingState) {
		this.commingState = commingState;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getCommingDate() {
		return commingDate;
	}

	public void setCommingDate(Date commingDate) {
		this.commingDate = commingDate;
	}

	public Date getPromiseDate() {
		return promiseDate;
	}

	public void setPromiseDate(Date promiseDate) {
		this.promiseDate = promiseDate;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
}
